package com.jbat.gwt.tiledmapcreator.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootLayoutPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class TiledMapCreator implements EntryPoint {
  private final MapGinjector injector = GWT.create(MapGinjector.class);

  @Override
  public void onModuleLoad() {
    RootLayoutPanel.get().add(injector.getDesignView());

    // goes to the default place
    injector.getPlaceHistoryHandler().handleCurrentHistory();
  }

}
